package ace.cmp.core.exception;

import ace.cmp.core.enums.SystemCodeEnum;
import lombok.Getter;

/**
 * @author Caspar 系统异常
 */
public class SystemException extends RuntimeException {

  @Getter protected Integer code = SystemCodeEnum.ERROR_SYSTEM_EXCEPTION.getCode();

  public SystemException() {
    super();
  }

  public SystemException(Throwable ex) {
    super(ex);
  }

  public SystemException(String message) {
    super(message);
  }

  public SystemException(String message, Throwable ex) {
    super(message, ex);
  }

  public SystemException(Integer code, String message) {
    super(message);
    this.code = code;
  }
}
